<template>
  <div class="biguanxl">
    <div class="xiangqing-header">
      <img @click="Back()" class="back" src="../../assets/img/shouye/header-xinpin/back.png" />
      <p>女汉纸到女神的蜕变</p>
      <img @click="fenxiang()" class="share" src="../../assets/img/shouye/header-xinpin/share.png" />
    </div>
    <div>
      <router-link :to="{name: 'xlmj-xiangqing'}">
        <div class="datu">
          <img src="../../assets/img/shouye/shouye-zeidianji/zhuanbian.png" alt="">
        </div>
      </router-link>
      <div class="bgxl">
        <h3>
          A  DICTION
        </h3>
        <h4>
          BY   AYAKO
        </h4>
        <h5>
          ADDICTION专为追求自我风格的各年龄层女性而设，
          由NARS的前彩妆总监Ayako掌舵。
          每件单品都以崭新的色彩和CHIC的包装呈现，
          质感奢华，宛如定制。
          上市以来已获得35项彩妆奖项，
          是日本杂志和化妆师力荐品牌。
        </h5>
      </div>
    </div>
    <ul class="shangpin-ul">
      <li>
        <router-link :to="{name: 'xlmj-xiangqing'}">
          <div class="datu">
            <img src="../../assets/img/shouye/shouye-zeidianji/danseyanying.png" alt="">
          </div>
        </router-link>
        <div class="bgxl-ul">
          <span>ADDICTION单色眼影@cosme 2016综合大赏、
          2016眼影部门第1位。</span>一直是超热产品，色卡图案
          简直是看得人眼花缭乱，但是却没有一款是多余的。
          色彩饱和度高，易上色，在肌肤上显色鲜亮饱满。粉
          质软弱易晕染，颜色均匀不结块。可以自由组合配色
          初化眼影的人参考官网的专业配色也可以轻松驾驭。
        </div>
      </li>
      <li>
        <router-link :to="{name: 'xlmj-xiangqing'}">
          <div class="datu">
            <img src="../../assets/img/shouye/shouye-zeidianji/yetisaihong.png" alt="">
          </div>
        </router-link>
        <div class="bgxl-ul">
          <span>ADDICTION单色眼影@cosme 2016综合大赏、
          2016眼影部门第1位。</span>一直是超热产品，色卡图案
          简直是看得人眼花缭乱，但是却没有一款是多余的。
          色彩饱和度高，易上色，在肌肤上显色鲜亮饱满。粉
          质软弱易晕染，颜色均匀不结块。可以自由组合配色
          初化眼影的人参考官网的专业配色也可以轻松驾驭。
        </div>
      </li>
    </ul>
    <ul class="good">
      <li>
        <div class="good-img">
          <img src="../../assets/img/shouye/shouye-zeidianji/danseyanying2.png" alt="">
        </div>
        <div class="good-list">
          <h3>ADDDICTION  魅力单色眼影</h3>
          <h4>
            ￥29.9
            <span>
              立即购买
            </span>
          </h4>
        </div>
      </li>
      <li>
        <div class="good-img">
          <img src="../../assets/img/shouye/shouye-zeidianji/danseyanying2.png" alt="">
        </div>
        <div class="good-list">
          <h3>ADDDICTION  魅力单色眼影</h3>
          <h4>
            ￥29.9
            <span>
              立即购买
            </span>
          </h4>
        </div>
      </li>
    </ul>
    <div class="fenxiang-mengban" v-if="isFX">
      <div class="fenxiang">
        <ul>
          <li>
            <ul class="fenxiang-list">
              <li>
                <div>
                  <img src="../../assets/img/shouye/fenxiang/pengyouquan.png"/>
                </div>
                <p>微信朋友圈</p>
              </li>
              <li>
                <div>
                  <img src="../../assets/img/shouye/fenxiang/weixin.png" /></div>
                <p>微信好友</p>
              </li>
              <li>
                <div>
                  <img src="../../assets/img/shouye/fenxiang/QQ.png"/></div>
                <p>QQ好友</p>
              </li>
            </ul>
          </li>
          <li>
            <ul class="fenxiang-list">
              <li>
                <div>
                  <img src="../../assets/img/shouye/fenxiang/QQkongjian.png"/></div>
                <p>QQ空间</p>
              </li>
              <li>
                <div>
                  <img src="../../assets/img/shouye/fenxiang/weibo.png" /></div>
                <p>微博</p>
              </li>
              <li>
                <div>
                  <img src="../../assets/img/shouye/fenxiang/fuzhilianjie.png"/></div>
                <p>复制链接</p>
              </li>
            </ul>
          </li>
        </ul>
        <div @click="quxiao()">
          取消
        </div>
      </div>
    </div>
    <div class="up" @click="toTop()" v-if="isUP">
      <img src="../../assets/img/shouye/tuijian-xuanliyanzhuang/toTop.png"/>
    </div>
  </div>
</template>
<script>
  export default {
    data () {
      return {
        isFX: false,
        isUP: false
      }
    },
    methods: {
      Back () {
        this.$router.go(-1)
      },
      fenxiang () {
        this.isFX = true
      },
      quxiao () {
        this.isFX = false
      },
      toTop () {
        if(document.documentElement){
          document.documentElement.scrollTop = 0;
        }else{
          document.body.scrollTop = 0;
        }
      },
      menu() {
        this.scroll = document.documentElement.scrollTop || document.body.scrollTop;
        if(this.scroll > 0){
          //显示 a 标签
          this.isUP = true;
        }else{
          //隐藏 a 标签
          this.isUP = false;
        }
      },
      top () {
        window.scrollTo(0,0)
      }
    },
    mounted() {
      window.addEventListener('scroll', this.menu)
    },
    created () {
      this.top();
    }
  }
</script>
<style scoped>
  .biguanxl {
    position: relative;
    width: 100%;
    padding-top: 2rem;
    background: #f2f2f2;
  }
  .xiangqing-header {
    width: 100%;
    height: 2rem;
    line-height: 2rem;
    background: #e53e42;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
  }
  .back {
    vertical-align: middle;
    width: 0.6rem;
    margin-left: 0.5rem;
  }
  .xiangqing-header>p{
    width: 12.5rem;
    height: 100%;
    text-align: center;
    display: inline-block;
    font-family: MicrosoftYaHei;
    font-size: 0.7rem;
    font-weight: normal;
    font-stretch: normal;
    color: #ffffff;
  }
  .share {
    vertical-align: middle;
    width: 1rem;
  }
  .shangpin-ul li {
    background: #fff;
    padding-bottom: 0.2rem;
    margin-bottom: 0.5rem;
  }
  .datu {
    padding-bottom: 0;
    font-size: 0;
  }
  .datu img{
    width: 100%;
  }
  .bgxl {
    font-family: MicrosoftYaHei;
    font-size: 0.7rem;
    font-weight: normal;
    font-stretch: normal;
    color: #4d4d4d;
    padding: 0.2rem;
    background: #fff;
    text-align: center;
  }
  .bgxl h3{
    font-size: 0.8rem;
  }
  .bgxl h4 {
    transform: scale(0.5);
  }
  .bgxl-ul {
    font-family: MicrosoftYaHei;
    font-size: 0.6rem;
    font-weight: normal;
    font-stretch: normal;
    color: #4d4d4d;
    background: #f2f2f2;
    border-radius: 0.5rem;
    margin: 0.5rem 0.5rem 0rem 0.5rem;
    padding: 0.3rem;
  }
  .bgxl-ul span {
    color: #eb7874;
  }
  .good li {
    display: flex;
    padding: 0.5rem;
    background: #fff;
    border-bottom: 1px solid #ccc;
  }
  .good-img {
    width: 4rem;
    height: 3rem;
    display: inline-block;
  }
  .good-img img {
    width: 100%;
  }
  .good-list {
    flex: 1;
    margin-left: 0.5rem;
  }
  .good-list h3{
    font-family: MicrosoftYaHei;
    font-size: 0.6rem;
    font-weight: normal;
    font-stretch: normal;
    color: #4d4d4d;
    margin-bottom: 1.5rem;
  }
  .good-list h4 {
    font-family: MicrosoftYaHei;
    font-size: 0.5rem;
    font-weight: normal;
    font-stretch: normal;
    color: #e53e42;
    padding-bottom: 0.5rem;
  }
  .good-list h4 span {
    text-align: center;
    display: inline-block;
    width: 3rem;
    padding: 0.1rem 0.2rem;
    margin-left: 4rem;
    background: #e53e42;
    color: white;
    border-radius: 0.5rem;
  }
  .fenxiang-mengban {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
    background: rgba(0,0,0,0.5);
  }
  .fenxiang {
    padding-top: 1rem;
    background: #fff;
    width: 100%;
    height: 10rem;
    position: absolute;
    bottom: 0;
    left: 0;
  }
  .fenxiang-list {
    display: flex;
  }
  .fenxiang-list li {
    flex: 1;
    text-align: center;
  }
  .fenxiang-list div {
    width: 1.5rem;
    height: 1.5rem;
    margin: 0.5rem auto;
  }
  .fenxiang-list div img {
    width: 100%;
  }
  .fenxiang-list p {
    font-size: 0.6rem;
    font-weight: normal;
    font-stretch: normal;
    color: #4d4d4d;
  }
  .fenxiang>div {
    font-size: 0.6rem;
    font-weight: normal;
    font-stretch: normal;
    background: #e53e42;
    color: #fff;
    width: 3rem;
    text-align: center;
    padding: 0.2rem;
    border-radius: 0.2rem;
    margin: 0.5rem auto;
  }
  .up {
    width: 1.5rem;
    position: fixed;
    bottom: 0;
    right: 0.3rem;
  }
  .up img {
    width: 100%;
  }
</style>
